package com.yaoxuguang.concurrence.singletonAndThread.hungry_model;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.singletonAndThread
 * @Description: 饿汉单例模式
 * @date 2018年12月25日11:18
 */
public class MyObject {
    private static MyObject object = new MyObject();

    private MyObject() {
    }

    public static MyObject getInstance(){
        return object;
    }
}
